
<!DOCTYPE html>
<html>

<head>
   
    
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--360浏览器优先以webkit内核解析-->


<title>下发在岗抽查</title>

<link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
<link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
<!-- Sweet Alert -->
<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>
   
    </style>

</head>

<body class="white-bg" style="padding: 3px;">
<div class="wrapper wrapper-content">
  <form action="" class="form-inline">
 <table class="table table-bordered col-md-6 animated fadeInRight">
    <tr class="info">
      <td style="font-size: 18px;" colspan="2" class="text-center">下发在岗抽查</td>
    </tr>
    <tr>
        <td style="width: 160px">集团当前应在岗人数：</td>
        <td id="checkNum">0</td>
    </tr>
    <tr>
      <td>本次抽查人数<span class="colorRed">*</span>:</td>
      <td><input type="text" class="form-control" name="" id="nowCheckNum"></td>
    </tr>
     <tr>
      <td>限定汇报时间<span class="colorRed">*</span>:</td>
      <td><input type="text" class="form-control" name="" id="limitReportTime" value="10">分钟</td>
    </tr>
     <tr>
      <td>
        <p>抽查要求<span class="colorRed">*</span>:</p>
        <p class="colorRed">
          （此调查要求会发送至导购员手机端，要求导购员按照抽查要求汇报在岗情况，例如：请在10分钟内拍本公司产品货架照片一张）
        </p>
      </td>
      <td>
        <textarea name="" id="checkDemand" style="width: 60%;height: 60px;resize: none;" class="form-control"></textarea>
      </td>
    </tr>
    <tr>
      <td  colspan="2">
        <div class="padding-10 text-center">
          <button class="btn btn-primary" type="button" id="sendCheck">下发抽查指令</button><span class="lr_5"></span><button class="btn btn-warning" type="button" id="fanhui">取消</button>
        </div>
      </td>
    </tr>
 </table>
  </form> 
</div>
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
  <script src="__STATIC__/layout/js/contabs_sub.js"></script>

    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script>

$("#sendCheck").click(function(){
    if($("#nowCheckNum").val()==""){
          confirm("本次抽查人数不能为空")
    }else if($("#limitReportTime").val()==""){
       confirm("限定汇报时间不能为空")
    }else if($("#checkDemand").val()==""){
       confirm("抽查要求不能为空")
     }else if($("#nowCheckNum").val()>$("#checkNum").text()){
       confirm("抽查人数不能大于在岗人数")
     }else if($("#nowCheckNum").val()==0){
       confirm("抽查人数必须大于0")
     }else{
      return false
     }
  


})
 $('#fanhui').on('click',function () {
//                    parent.layer.close(parent.layer.getFrameIndex(window.name))
                    parent.location.reload();
                    return false
                })

</script>
</body>

</html>